    package com.thread.www;

import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.atomic.AtomicIntegerArray;
import java.util.concurrent.locks.AbstractQueuedSynchronizer;
import java.util.concurrent.locks.ReentrantLock;

/**
 * Created by 27340 on 2017/3/25.
 */
public class AQSLearn {
    public static void main(String[] args) throws Exception{
        ReentrantLock lock = new ReentrantLock();
        ConcurrentLinkedQueue queue = new ConcurrentLinkedQueue();
        AtomicIntegerArray array = new AtomicIntegerArray(10);
        array.getAndSet(1,1);
        array.compareAndSet(1,1,2);
    }
}
